package com.hx.vending.dao;

import com.hx.vending.bean.EquipmentTypeRise;
import com.hx.vending.bean.EquipmentTypeTrails;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2019/2/18.
 */
@Repository
public interface EquipmentTypeTrailsMapper {
    int insertBatchTrails(@Param("equipmentTypeTrailsList") List<EquipmentTypeTrails> equipmentTypeTrailsList);

    List<EquipmentTypeTrails> selectByExampleSelective(EquipmentTypeTrails typeTrails);

    int updateByPrimaryKeySelective(EquipmentTypeTrails equipmentTypeTrails);

    int deleteTrailsByCaseId(@Param("equipmentCaseId") Integer equipmentCaseId);

    int deleteTrailsByTypeId(@Param("equipmentTypeId") Integer equipmentTypeId);

    List<EquipmentTypeRise> selectTrailsByCaseId(@Param("equipmentCaseId") Integer equipmentCaseId);

    int updateByRiseId(EquipmentTypeTrails equipmentTypeTrails);

    int deleteTrailsByRiseId(@Param("equipmentTypeRiseId") Integer equipmentTypeRiseId);
}
